package domain.vo;

import domain.entity.Dept;

public class UserVo extends BaseVo{



    public String name;

    public String username;

    public String mobile;

    public String email;

    public int deptId;

    public String deptName;

    public String roleName;

    public int roleId;

    public boolean enabled=true;

    public UserVo() {
    }

    public UserVo(int id, String name, String username,
                  String mobile, String email,
                  int deptId, String deptName, String roleName,
                  int roleId, boolean enabled) {
        super(id);
        this.name = name;
        this.username = username;
        this.mobile = mobile;
        this.email = email;
        this.deptId = deptId;
        this.deptName = deptName;
        this.roleName = roleName;
        this.roleId = roleId;
        this.enabled = enabled;
    }

    @Override
    public String toString() {
        return String .format("ID: %d,用户名： %s,姓名： %s,手机号： %s,邮箱： %s,部门ID： %d,角色ID： %d,状态： %s",
                id,username,name,mobile,email,deptId,roleId,enabled ? "启用" : "禁用");
    }
}
